﻿using System.ComponentModel.DataAnnotations;

namespace MMSWebsite.Models.Asset
{
    public class MasterData
    {
        public int id { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Master Data Code")]
        [Required(AllowEmptyStrings = false, ErrorMessage = "Required Field")]
        public string code { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Master Data Type")]
        [Required(AllowEmptyStrings = false, ErrorMessage = "Required Field")]
        public string type { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Master Data Name")]
        [Required(AllowEmptyStrings = false, ErrorMessage = "Required Field")]
        public string name { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Master Data Value")]
        [Required(AllowEmptyStrings = false, ErrorMessage = "Required Field")]
        public string value { get; set; }

        [DataType(DataType.Text)]
        [Display(Name = "Master Data Description")]
        public string description { get; set; }

        public int uid { get; set; }
        public int cid { get; set; }
        public string freeze { get; set; }
    }
}